{if $_G['cache']['plugin'][$pluginid]['is_daohang']}
{template common/header_common}
<script type="text/javascript" src="source/plugin/aljbd/js/index_new/jquery1.9.1.js"></script>
<script type="text/javascript">
var lj_jq=jQuery.noConflict();
</script>
<link href="source/plugin/aljbd/css/new_index/header.css" rel="stylesheet" type="text/css">
<link href="source/plugin/aljbd/css/new_index/reset.css" rel="stylesheet">
<style id="diy_style" type="text/css"></style>
<!--{if $_G['basescript'] != 'portal' && $_GET['diy'] == 'yes' && check_diy_perm($topic)}-->
		<script type="text/javascript" src="{$_G[setting][jspath]}portal.js?{VERHASH}"></script>
	<!--{/if}-->
	<!--{if $_GET['diy'] == 'yes' && check_diy_perm($topic)}-->
	<link rel="stylesheet" type="text/css" id="diy_common" href="data/cache/style_{STYLEID}_css_diy.css?{VERHASH}" />
	<!--{/if}-->
	 <!--{if $_GET['diy'] == 'yes' && check_diy_perm($topic)}-->
		<!--{template common/header_diy}-->
	<!--{/if}-->
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>

<div id="page">
  <div id="topNav" class="warp-all">
		
        <dl class="user-entry">
		<dt>{lang aljbd:index_header_1}{$_G['username']}{lang aljbd:index_header_2}<span><a href="./">{$_G['setting']['bbname']}</a></span>{$_G['cache']['plugin'][$pluginid]['aljbd_plugins']}</dt>
		  
		</dl>
        <ul class="quick-menu">
			
		
		 
		  <li class="user-center">
			<div class="menu"><a class="menu-hd" href="plugin.php?id=aljbd&act=member" target="_top" title="{lang aljbd:index_header_7}" >{lang aljbd:index_header_7}<i></i></a>
			  <div class="menu-bd">
				<ul>
				  <li><a href="plugin.php?id=aljbd&act=member" target="_top" title="{lang aljbd:index_header_8}" >{lang aljbd:index_header_8}</a></li>
				  <li><a href="plugin.php?id=aljbd&act=orderlist" target="_top" title="{lang aljbd:adminorder}" >{lang aljbd:adminorder}</a></li>
				  <li><a href="home.php?mod=spacecp" target="_top" title="{lang aljbd:index_header_9}">{lang aljbd:index_header_9}</a></li>
				  <li><a href="home.php?mod=space&do=friend" target="_top" title="{lang aljbd:index_header_10}" >{lang aljbd:index_header_10}</a></li>
				</ul>
			  </div>
			</div>
		  </li>

            
                
            <!-- 收藏夹 -->
      <li class="favorite">
        <div class="menu"><a class="menu-hd" href="plugin.php?id=aljbd" title="{$_G['cache']['plugin'][$pluginid]['aljbd_plugins']}" target="_top" >{$_G['cache']['plugin'][$pluginid]['aljbd_plugins']}<i></i></a>
          <div class="menu-bd">
            <ul>
              <li><a href="{if $_G['cache']['plugin'][$pluginid]['isrewrite']}brand.html{else}plugin.php?id=aljbd&act=dianpu{/if}" target="_top" title="{lang aljbd:index_header_11}" >{lang aljbd:index_header_11}</a></li>
              <li><a href="{if $_G['cache']['plugin'][$pluginid]['isrewrite']}goods.html{else}plugin.php?id=aljbd&act=goods{/if}" target="_top" title="{lang aljbd:index_header_12}" >{lang aljbd:index_header_12}</a></li>
              <li><a href="{if $_G['cache']['plugin'][$pluginid]['isrewrite']}notice.html{else}plugin.php?id=aljbd&act=nlist{/if}" target="_top" title="{lang aljbd:index_header_13}" >{lang aljbd:index_header_13}</a></li>
              <li><a href="{if $_G['cache']['plugin'][$pluginid]['isrewrite']}consume.html{else}plugin.php?id=aljbd&act=clist{/if}" target="_top" title="{lang aljbd:index_header_14}" >{lang aljbd:index_header_14}</a></li>
			  <li><a href="{if $_G['cache']['plugin'][$pluginid]['isrewrite']}map.html{else}plugin.php?id=aljbd:so{/if}" target="_top" title="{lang aljbd:index_header_18}">{lang aljbd:index_header_18}</a></li>
            </ul>
          </div>
        </div>
      </li>
	  {if $_G['cache']['plugin']['aljgwc'][$pluginid]}
		{template aljgwc:aljbd_index_header_cart}
	  {/if}
     <li style="background: url('') no-repeat scroll 100% -26px;"><a target="_top" title="{lang aljbd:index_header_15}" href="home.php?mod=space&do=pm"> {lang aljbd:index_header_15} </a></li>
	{if $_G['uid']}
	 <li style="background: url('') no-repeat scroll 100% -26px;"><a style="padding: 2px 1px 0;" href="home.php?mod=space&uid=$_G['uid']"><img width="20" height="20" src="{eval echo avatar($_G['uid'],'small',true)}" alt="avatar">&nbsp;&nbsp;$_G['username']</a></li>
	 <li style="background: url('') no-repeat scroll 100% -26px;"><a  href="member.php?mod=logging&action=logout&formhash={FORMHASH}">[{lang aljbd:index_header_4}]</a></li>
	 {else}
	 <li style="background: url('') no-repeat scroll 100% -26px;"><a style="padding: 2px 1px 0;" onclick="return showWindow('bdlogin', 'member.php?mod=logging&action=login&infloat=yes', 'get', 1);" href="javascript:;">[{lang aljbd:index_header_5}]</a></li>
	 <li style="background: url('') no-repeat scroll 100% -26px;"><a href="member.php?mod={$_G['setting'][regname]}">[{lang aljbd:index_header_6}]</a></li>
	 {/if}
	 
     
          </ul>
		  <div class="y" style="width:55px;">
		  <!--{if check_diy_perm($topic)}-->
		<!--{block diynav}-->
			<a id="diy-tg" href="javascript:openDiy();" title="{lang open_diy}" class="xi1 xw1" onmouseover="showMenu(this.id)"><img src="{STATICURL}image/diy/panel-toggle.png" alt="DIY" /></a>
			<div id="diy-tg_menu" style="display: none;">
				<ul>
					<li><a href="javascript:saveUserdata('diy_advance_mode', '');openDiy();" class="xi2">{lang header_diy_mode_simple}</a></li>
					<li><a href="javascript:saveUserdata('diy_advance_mode', '1');openDiy();" class="xi2">{lang header_diy_mode_adv}</a></li>
				</ul>
			</div>
		<!--{/block}-->
	<!--{/if}-->
	<!--{if CURMODULE == 'topic' && $topic && empty($topic['useheader']) && check_diy_perm($topic)}-->
		$diynav
	<!--{/if}-->
	<!--{if check_diy_perm($topic)}-->
		<style type="text/css">
			#topNav .quick-menu { right: 56px;}
		</style>
		$diynav
	<!--{/if}-->
	</div>
  </div>
  
	
</div>
    
    
	
    <script type="text/javascript" src="source/plugin/aljbd/js/index_new/main.js"></script>
    <script src="source/plugin/aljbd/js/index_new/autocomplete.js" type="text/javascript"></script>
    <style type="text/css">
        .liss1
        {
            padding: 5px 10px;
        }
        .liss2
        {
            background: #efefef;
            color: #c00;
        }
		
    </style>
    <script type="text/javascript">
        lj_jq(function () {
            //自动搜索 panbb
        /*    lj_jq("#txtKeyWords").autocomplete({
                zindex: 82282828282,
                "httpUrl": "/Handler/seaechKeyWord.ashx",
                "keyupFun": function () { }
            });*/

            //打开窗口
            lj_jq(".openwin").click(function () {

                return false;
            });
        });
        function openwin(showdom) {

            if (lj_jq(showdom).is(":hidden")) {
                //执行显示
                lj_jq(showdom).show();
            } else {
                //执行隐藏
                lj_jq(showdom).hide();
            }
            if (showdom == "#ajhskd1") {
                //执行隐藏
                lj_jq("#ajhskd2").hide();
            } else {
                //执行隐藏
                lj_jq("#ajhskd1").hide();
            }
            return false;
        }
    </script>

    
<script type="text/javascript">
    function stripsc(s) {
        var pattern = new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~！@#￥……&*（）—|{}【】‘；：”“'。，、？]")
        var rs = "";
        for (var i = 0; i < s.length; i++) {
            rs = rs + s.substr(i, 1).replace(pattern, '').replace("-", "");
        }
        return rs;
    }
	lj_jq(document).ready(function(){
		lj_jq("#scrolltop").css('display','none');	
	});
</script>
<!--头部-->
<div class="layout header" style="margin-top:0px;">
    <div class="logomain">
	<style type="text/css">
		.logo_lj {
		  display: inline;
		  float: left;
		  margin: 10px;
		  height: 80px;
		  width: 220px;
		}
		.logo_lj a {
		  display:table-cell;
		  vertical-align:middle;
		  height: 80px;
		  width: 220px;
		  overflow: hidden;
		}
		
	</style>
		{eval $record = C::t('#aljbd#aljbd_setting')->fetch('logo');}
        <div class="logo_lj">
            <a href="{if $_G['cache']['plugin'][$pluginid]['index_url']}$_G['cache']['plugin'][$pluginid]['index_url']{else}./{/if}" title="">
				{if $record['value']}<img border="0" alt="{$_G['cache']['plugin'][$pluginid]['aljbd_plugins']}" src="$record['value']">{else}{if $_G['cache']['plugin'][$pluginid]['logo']}<img border="0" alt="{$_G['cache']['plugin'][$pluginid]['aljbd_plugins']}" src="$_G['cache']['plugin'][$pluginid]['logo']">{else}$_G['style'][boardlogo]{/if}{/if}
            </a>
        </div>
        
        <div class="search">
            <div class="search-item searchhov">
                <h1>
                    <span id="typevalue">{lang aljbd:index_header_11}</span><span class="W_arrow"><em>&#9670;</em></span></h1>
                <ul class="search-list">
                	<li><a href="javascript:;">{lang aljbd:index_header_11}</a></li>
                    <li><a href="javascript:;">{lang aljbd:index_header_12}</a></li>
                    <li><a href="javascript:;">{lang aljbd:index_header_13}</a></li>
                    <li><a href="javascript:;">{lang aljbd:index_header_14}</a></li>
                    
                </ul>
            </div>
			<style type="text/css">
				.search-item {
					width: 78px;
				}
				.search-item h1 .W_arrow {
				  left: 62px;
				}
			</style>
            <div class="search-form">
                <div id="wraptxtKeyWords" style="position:relative;color:#000;z-index:82282828282"><div style="display:none;background:#fff;border:2px solid #999;border-top:none;width:268px;position:absolute; top:40px; left:-12px;" id="tiptxtKeyWords"><ul></ul><div></div></div>
                <input type="text" class="input-txt" value="$_GET['kw']" id="txtKeyWords" x-webkit-speech="" placeholder="{lang aljbd:searchaddr}" autocomplete="off" style="height: 20px; padding: 0px;"></div>
                <input class="input-ss" type="button" value="{lang aljbd:index_header_16}" onclick="seachfun();">
                <script type="text/javascript">
					lj_jq(".search-list li a").click(function () {
					  lj_jq("#typevalue").html(lj_jq(this).html());
					  if(lj_jq(this).html()=='{lang aljbd:index_header_11}'){
						lj_jq("#txtKeyWords").attr('placeholder','{lang aljbd:searchaddr}');
					  }else{
						lj_jq("#txtKeyWords").attr('placeholder','$_G[cache][plugin][$pluginid][search]');
					  }
					  
					});
                    function seachfun() {
                        var typevalue = lj_jq("#typevalue").html();
                        var keyw = lj_jq("#txtKeyWords").val();
                        keyw = stripsc(keyw);
                        var uuuu = '';
                        switch (typevalue) {
                            case "{lang aljbd:index_header_11}":
                                uuuu = 'plugin.php?id=aljbd&act=dianpu&kw=' + keyw;
                                break;
                            case "{lang aljbd:index_header_12}":
                                uuuu = 'plugin.php?id=aljbd&act=goods&kw=' + keyw;
                                break;
                            case "{lang aljbd:index_header_13}":
                                uuuu = 'plugin.php?id=aljbd&act=nlist&kw=' + keyw;
                                break;
                            case "{lang aljbd:index_header_14}":
                                uuuu = 'plugin.php?id=aljbd&act=clist&kw=' + keyw;
                                break;
                            
                        }
                        //跳转

                        window.location.href = encodeURI(uuuu);
                    }
                </script>
            </div>
        </div>    
    </div>
</div>
<!--导航-->
<style type="text/css">
.mainnav .nav-two ul li {
  float:none;
  text-align:left;
}
.mainnav .nav-two ul{
  float:none;
}
.mainnav .navlist {
  width: 210px;
}
.mainnav .navhref {
  color: #fff;
  float: left;
  font-size: 14px;
  height: 40px;
  line-height: 40px;
  position: relative;
  text-align: center;
}
.mainnav .nav-two {
  background: none repeat scroll 0 0 {$_G['cache']['plugin'][$pluginid]['color_daohang']};
  display: none;
  height: auto;
  left: 0;
  min-height: 398px;
  padding-top: 2px;
  position: absolute;
  top: 40px;
  width: 100%;
  z-index: 10;
}
.mainnav .nav-two .nav-three {
  color: #fff;
  float: none;
  font-size: 12px;
  height: 30px;
  line-height: 30px;
  padding-left: 12px;
}

.mainnav .nav-two .nav-three .nav-three-main {
    background: url("source/plugin/aljbd/images/index-nav-bg2.png") repeat scroll 0 0;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.07) inset;
    display: none;
    height: auto;
    left: 210px;
    min-height: 400px;
    position: absolute;
    top: 0;
    width: 588px;
    z-index: 10000;
}
.mainnav .nav-two .nav-three .nav-three-main div {
    margin-top: 7px;
    width: 100%;
}
.mainnav .nav-two .nav-three .nav-three-main div ul {
    padding: 0 15px 4px;
}
.mainnav .nav-two .nav-three .nav-three-main div ul .navmain {
    color: #b8babf;
    line-height: 25px;
    padding-top: 4px;
}
.mainnav .nav-two .nav-three .nav-three-main div ul .navtitle {
    border-bottom: 1px solid #eae4dc;
    color: #ff4c66;
    font-weight: bold;
}
.mainnav .nav-two .nav-three .nav-three-main div ul .navtitle a {
    color: #353942;
    cursor: default;
    font-weight: bold;
    line-height: 25px;
    padding: 0;
    text-align: left;
}
.mainnav .nav-two .nav-three .nav-three-main div ul .navtitle a.active {
    color: #ff4c66;
    font-weight: bold;
    line-height: 25px;
    padding: 0;
    text-align: left;
}
.mainnav .nav-two .nav-three .nav-three-main div ul .navmain a {
    color: #56595e;
    display: inline-block;
    font-size: 12px;
    line-height: 25px;
    padding: 0 8px;
}
.mainnav .nav-two .nav-three .nav-three-main div ul .navmain a:hover {
    color: #ff4c66;
}
.mainnav .nav-two .nav-three .nav-three-main div ul .navmain a.active {
    color: #ff4c66;
}
.mainnav .navtwoname {
    display: inline-block;
    float: left;
    height: 30px;
    line-height: 30px;
    margin-left: 5px;
}
.mainnav .default-icon {
    background: url("source/plugin/aljbd/images/index-navtwobg-default.png") no-repeat center center;
    float: left;
    height: 30px;
    width: 19px;
}
.mainnav .nav-two li a {
  color: #666;
  font-size: 12px;
  font-weight: 400;
  line-height: 35px;
  padding: 0;
}
.mainnav .navhref a {
  color: #fff;
  display: block;
  font-size: 14px;
  font-weight: bold;
  height: 100%;
  line-height: 40px;
  padding: 0 30px;
  text-align: center;
}
.mainnav .nav-two .nav-three .nav-three-main div ul .navtitle {
  border-bottom: 1px solid #eae4dc;
  color: #ff4c66;
  font-weight: bold;
}
.aljbdfl {
  display: block;
  float: left !important;
}
.mainnav .navhref span {
    background: url("source/plugin/aljbd/images/index_bav_top.png") no-repeat scroll center center;
    height: 6px;
    position: absolute;
    right: 15px;
    top: 18px;
    width: 9px;
}
.mainnav .navhref:hover span {
    transform: rotate(180deg);
    transform-origin: 50% 30% 0;
    transition: transform 0.2s ease-in 0s;
}
.mainnav .nav-two .nav-three .navtwojt {
    background: url("source/plugin/aljbd/images/index-navtwooff.png") no-repeat scroll center center;
    float: right;
    height: 30px;
    padding-right: 30px;
    width: 5px;
}
.mainnav .nav-two .nav-three:hover .navtwojt {
    background: url("source/plugin/aljbd/images/index-navtwoon.png") no-repeat scroll center center;
    float: right;
    height: 30px;
    padding-right: 30px;
    width: 5px;
}
.mainnav .nav-two .nav-three:hover {
    background-color: {$_G['cache']['plugin'][$pluginid]['cd_xuanzhong']};
    padding-left: 16px;
}
</style>
<div class="mainnav">
    <div class="layout" {if $settings['typesnavlocation']['value']}style="width:1380px;margin-top:0px;"{/if}>
        <ul>
			{if $settings['displaynavs']['value']}
			<li class="on navlist navhref current" id="indexmenu"><a href="javascript:;">{if $settings['displaygoodsnav']['value']}{lang aljbd:allgoodstype}{else}{lang aljbd:alltype}{/if}</a><span></span>
			<ul class="nav-two">
			{loop $alltype $ttt}
			<li class="nav-three">
				<p class="default-icon"></p>
				<p class="navtwoname">$ttt['subject']</p>
				<p class="navtwojt"></p>
				<div class="nav-three-main">
				{if $settings['isthird']['value']}

				{if $settings['displaygoodsnav']['value']}
				{loop C::t('#aljbd#aljbd_type_goods')->fetch_all_by_upid($ttt['id']) $tt}
				<div class="aljbdfl" style="width: 294px;">                                    
				<ul>
				<li class="navtitle">
				<a href="plugin.php?id=aljbd&act=goods&type={$ttt['id']}&subtype={$tt['id']}" style="cursor:pointer;">$tt['subject']</a>
				</li>
				<li class="navmain">
				{loop C::t('#aljbd#aljbd_type_goods')->fetch_all_by_upid($tt['id']) $ttt}
				<a class="active" href="plugin.php?id=aljbd&act=goods&type={$ttt['id']}&subtype={$tt['id']}&subtype3={$ttt['id']}">$ttt['subject']</a>
				{/loop}
				</li>
				</ul>
				</div>
				{/loop}
				{else}
				{loop C::t('#aljbd#aljbd_type')->fetch_all_by_upid($ttt['id']) $tt}
				<div class="aljbdfl" style="width: 294px;">                                    
				<ul>
				<li class="navtitle">
				<a href="plugin.php?id=aljbd&act=dianpu&type={$ttt['id']}&subtype={$tt['id']}" style="cursor:pointer;">$tt['subject']</a>
				</li>
				<li class="navmain">
				{loop C::t('#aljbd#aljbd_type')->fetch_all_by_upid($tt['id']) $ttt}
				<a class="active" href="plugin.php?id=aljbd&act=dianpu&type={$ttt['id']}&subtype={$tt['id']}&subtype3={$ttt['id']}">$ttt['subject']</a>
				{/loop}
				</li>
				</ul>
				</div>
				{/loop}
				{/if}
				


				{else}
				<div class="aljbdfl">                          
						<ul>
							<li class="navtitle">
								{if $settings['displaygoodsnav']['value']}
								<a href="plugin.php?id=aljbd&act=goods&type={$ttt['id']}" style="cursor:pointer;">$ttt['subject']</a>
								{else}
								<a href="plugin.php?id=aljbd&act=dianpu&type={$ttt['id']}" style="cursor:pointer;">$ttt['subject']</a>
								{/if}
							</li>
							<li class="navmain">
							{if $settings['displaygoodsnav']['value']}
							{loop C::t('#aljbd#aljbd_type_goods')->fetch_all_by_upid($ttt['id']) $tt}
								 <a href="plugin.php?id=aljbd&act=goods&type={$ttt['id']}&subtype={$tt['id']}">$tt['subject']</a>| 
								{/loop}
							{else}
							{loop C::t('#aljbd#aljbd_type')->fetch_all_by_upid($ttt['id']) $tt}
								 <a href="plugin.php?id=aljbd&act=dianpu&type={$ttt['id']}&subtype={$tt['id']}">$tt['subject']</a>| 
								{/loop}
							{/if}
							</li>
						</ul>
					</div>
				 {/if}                                                             
				<div class="cb">
				</div>
				</div>
			</li>
			{/loop}
			</ul>
		</li>
		{/if}
			{loop $index_dh_types $k $v}
			{eval $dt=$ress[$v]?$ress[$v]:$v}
            <li {if !$settings['displaynavs']['value']}{if $dt===$url_dh||strpos($dt,$_GET['act'])||$v===$the_uri ||(!$_GET['act']&&strpos($url_dh,$dt))}class="current"{/if}{/if} ><a href="$v">$k</a></li>
            {/loop}
        </ul>
        
    </div>
</div>

{else}
{template common/header}
<script type="text/javascript" src="source/plugin/aljbd/js/index_new/jquery1.9.1.js"></script>
<script type="text/javascript">
</script>
<link href="source/plugin/aljbd/css/new_index/header.css" rel="stylesheet" type="text/css">
<link href="source/plugin/aljbd/css/new_index/reset.css" rel="stylesheet">
{/if}
<style type="text/css">
	.mainnav{background:{$_G['cache']['plugin'][$pluginid]['color_daohang']};}
	.mainnav a:hover{background:{$_G['cache']['plugin'][$pluginid]['cd_xuanzhong']};text-decoration:none;}
	.mainnav li.current a {background: none repeat scroll 0 0 {$_G['cache']['plugin'][$pluginid]['cd_xuanzhong']};}
	.mainnav li.current .nav-two a {background: none}
	.aljbdfl a:hover{background:none;text-decoration:none;}
	.lj_btn {background-color: {$_G['cache']['plugin'][$pluginid]['p_color']};}
	.d {background-color: {$_G['cache']['plugin'][$pluginid]['d_color']};}
	.search-form .input-ss{background:{$_G['cache']['plugin'][$pluginid]['s_color']};}
	#wraptxtKeyWords {width: 250px;}
	.selection .a {background: none repeat scroll 0 0 {$_G['cache']['plugin'][$pluginid]['cd_xuanzhong']};color: #fff;}
	body{{if !$settings['body_color']['value']}background: url("") repeat-x scroll 0 0 #ffffff;{/if}font: 12px/1.5 Tahoma,Helvetica,"SimSun",sans-serif;}
</style>
<script type="text/javascript">
var lj_jq=jQuery.noConflict();
lj_jq("#indexmenu").hover(function(){
	lj_jq(".nav-two").show();	
},function(){
	lj_jq(".nav-two").hide();
});
lj_jq(".nav-three").hover(function(){
	lj_jq(this).find(".nav-three-main").show();	
},function(){
	lj_jq(this).find(".nav-three-main").hide();
});
</script>